package com.zhoum.multiconndb.web.api;

import com.zhoum.multiconndb.service.MultiSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping(value = "/db")
public class MultiApiController {

    @Resource
    MultiSourceService multiSourceService;

    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public Map<String,Object> query(){
        return multiSourceService.getList();
    }

}
